package com.weiyi.digitaloperatingroom;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.wjr.braveheart.ui.activity.AppActivity;

public class MainActivity extends AppActivity {

    private TextView patient_info_tv, inspect_info_tv, test_info_tv, live_video_tv, image_data_tv;

    @Override
    protected int bindLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initEventAndData(Bundle savedInstanceState, Bundle extras) {
        patient_info_tv = getView(R.id.patient_info_tv);
        ClickUtils.applyScale(patient_info_tv);
        ClickUtils.applyGlobalDebouncing(patient_info_tv, 2000, this);
        inspect_info_tv = getView(R.id.inspect_info_tv);
        ClickUtils.applyScale(inspect_info_tv);
        ClickUtils.applyGlobalDebouncing(inspect_info_tv, 2000, this);
        test_info_tv = getView(R.id.test_info_tv);
        ClickUtils.applyScale(test_info_tv);
        ClickUtils.applyGlobalDebouncing(test_info_tv, 2000, this);
        live_video_tv = getView(R.id.live_video_tv);
        ClickUtils.applyScale(live_video_tv);
        ClickUtils.applyGlobalDebouncing(live_video_tv, 2000, this);
        image_data_tv = getView(R.id.image_data_tv);
        ClickUtils.applyScale(image_data_tv);
        ClickUtils.applyGlobalDebouncing(image_data_tv, 2000, this);


    }

    @Override
    protected void loadData() {

    }

    @Override
    protected void onWidgetClick(View view) {
        switch (view.getId()) {
            case R.id.patient_info_tv:
                startActivity(PatientInfoActivity.class);
                break;
            case R.id.inspect_info_tv:
                startActivity(InspectInfoActivity.class);
                break;
            case R.id.test_info_tv:
                startActivity(TestInfoActivity.class);
                break;
            case R.id.live_video_tv:
                break;
            case R.id.image_data_tv:
                break;


        }
    }
}
